package com.naiterui.ehp.bs.file.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseMongoRepository;
import com.naiterui.ehp.bs.file.domain.FileStore;

/**
 * 文件存储相关
 * 
 * @author yangfuya
 * @since 2021/9/9
 */
@Repository
public interface FileStoreRepository extends BaseMongoRepository<FileStore, String> {

    FileStore findFirstByUid(String uid);

    List<FileStore> findByUidIn(List<String> uids);

    /**
     * 根据id批量获取文件
     * 
     * @param ids
     * @return /
     */
    List<FileStore> findByIdIn(List<String> ids);
}
